class CreateNewsCategories < ActiveRecord::Migration[8.0]
  def change
    create_table :news_categories do |t|
      t.string :name
      t.timestamps
    end
    add_reference :news, :news_category, foreign_key: true
  end
end
